package com.library.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * book评论

 * </p>
 *
 * @author ccl
 * @since 2024-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BookCommentInfo对象", description="book评论")
public class BookCommentInfo extends Model<BookCommentInfo> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "编码")
    private String bookCode;

    @ApiModelProperty(value = "名称")
    private String bookName;

    @ApiModelProperty(value = "推荐值")
    private String recommendValue;

    @ApiModelProperty(value = "总阅读人数")
    private Integer totalReadCount;

    @ApiModelProperty(value = "完成阅读人数")
    private Integer completeReadCount;

    @ApiModelProperty(value = "点评人数")
    private Integer commentCount;

    @ApiModelProperty(value = "推荐人数")
    private Integer recommendCount;

    @ApiModelProperty(value = "普通人数")
    private Integer commonCount;

    @ApiModelProperty(value = "不行人数")
    private Integer badCount;

    @ApiModelProperty(value = "收藏人数")
    private Integer collectCount;

    @ApiModelProperty(value = "是否标记已读")
    private Integer sfRead;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
